export const routes = [
  {
    path: "/",
    redirect: "/home",
  },
  {
    path: "/tabbar",
    name: "Tabbar",
    component: () => import("@/layout/tabbar/index.vue"),
    children: [
      {
        path: "/home",
        name: "Home",
        component: () => import("@/pages/home/index.vue"),
        meta: {
          title: "首页",
          icon: "home-o",
          isCustomIcon: false,
          isNavBar: true,
          iconCustomIcon: {
            default: "",
            active: "",
          },
        },
      },
      {
        path: "/client",
        name: "Client",
        component: () => import("@/pages/client/index.vue"),
        meta: {
          title: "客户",
          icon: "friends-o",
          isCustomIcon: true,
          isNavBar: true,
          iconCustomIcon: {
            default: "client_default.png",
            active: "client_active.png",
          },
        },
      },
      {
        path: "/task",
        name: "Task",
        component: () => import("@/pages/task/index.vue"),
        meta: {
          title: "任务",
          icon: "search",
          isCustomIcon: true,
          isNavBar: true,
          iconCustomIcon: {
            default: "task_default.png",
            active: "task_active.png",
          },
        },
      },
      {
        path: "/my",
        name: "My",
        component: () => import("@/pages/my/index.vue"),
        meta: {
          title: "我的",
          icon: "setting-o",
          isCustomIcon: true,
          isNavBar: false,
          iconCustomIcon: {
            default: "my_default.png",
            active: "my_active.png",
          },
        },
      },
    ],
  },
  {
    path: "/ordinary",
    name: "Ordinary",
    component: () => import("@/layout/ordinary/index.vue"),
    children: [
      {
        path: "/clientDetail",
        name: "ClientDetail",
        component: () => import("@/pages/clientDetail/index.vue"),
        meta: {
          title: "客户详情",
        },
      },
    ],
  },
];
